package com.itheima.dao;

import com.itheima.pojo.User;
import com.itheima.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

public interface UserDao {

    User findByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

    //请求 把该用户所有信息给我
    User findById(@Param("id") int id);

    //请求 查询把用户信息给我就行了
    User findByIdWithLazy(@Param("id") int id);

    UserInfo findInfoById(@Param("id") int id);


    User findUserAndOrder(@Param("id") int id);

}
